<template>
  <EmailConfig v-bind="stats.data" :key="stats.key"/>
</template>
<script lang="ts" setup>
import { ref, shallowRef } from 'vue';
import { ConfigKey } from '/@/views/system/config/config.model';
import EmailConfig from './EmailConfig.vue'
import { FormSchema } from '/@/components/Table';

// 腾讯
const emailTenantFormSchema : FormSchema[] = [
  {
    field: 'username',
    label: '账户',
    required: true,
    component: 'Input'
  },
  {
    field: 'password',
    label: '授权码',
    required: true,
    helpMessage: [
      "地址: <a target='_blank' href='https://wx.mail.qq.com/home/index'>腾讯邮箱</a>",
      "入口: 点击右上角头像->设置->全局搜索【授权码】"
    ],
    component: 'Input',
  },
];

const stats = ref({
  key:  ConfigKey.EMAIL_TENCENT.code,
  name: '腾讯邮箱',
  data: { configKey: ConfigKey.EMAIL_TENCENT, formSchema: emailTenantFormSchema},
})

</script>

<style lang="less">
@import '../../style.less';
</style>
